
let g:vimwiki_global_vars = {
            \   'conceallevel': 2,
            \   'autowriteall': 1,
            \   'table_reduce_last_col': 0, 
            \   'rxWord': '[^[:blank:]!"$%&''()*+,:;<=>?\[\]\\^`{}]*[^[:blank:]!"$%&''()*+.,:;<=>?\[\]\\^`{}]',
            \   'use_mouse': 0,
            \   'rxWikiInclSuffix': '}}',
            \   'html_header_numbering_sym': '',
            \   'hl_cb_checked': 0,
            \   'rxWikiInclUrl': '[^\\\}]\{-}',
            \   'ext2syntax': {
            \       '.markdown': 'markdown',
            \       '.md': 'markdown',
            \       '.mw': 'media',
            \       '.mdwn': 'markdown',
            \       '.mkdn': 'markdown',
            \       '.mdown': 'markdown'
            \   },
            \   'auto_header': 0,
            \   'schemes_local': 'wiki\d\+\|diary\|local',
            \   'rxWikiLinkUrl': '[^\\\]]\{-}',
            \   'diary_months': {
            \        '1': 'January',
            \        '2': 'February',
            \        '3': 'March',
            \        '4': 'April',
            \        '5': 'May',
            \        '6': 'June',
            \        '7': 'July',
            \        '8': 'August',
            \        '9': 'September',
            \        '10': 'October',
            \        '11': 'November',
            \        '12': 'December'
            \    }, 
            \    'rxWikiInclSeparator': '|',
            \    'rxWikiInclArg': '[^\\\}]\{-}',
            \    'hcolor_ctermfg_light': ['DarkRed', 'DarkGreen', 'DarkBlue', 'Black', 'Black', 'Black'],
            \    'rx_wikilink_prefix1': '\[\[[^\\\]]\{-}|',
            \    'global_ext': 1,
            \    'WikiLinkTemplate1': '[[__LinkUrl__]]',
            \    'WikiLinkTemplate2': '[[__LinkUrl__|__LinkDescription__]]',
            \    'tags_header': 'Generated Tags',
            \    'rx_wikilink_suffix1': '\]\]',
            \    'hcolor_ctermfg_dark': ['Red', 'Green', 'Blue', 'White', 'White', 'White'],
            \    'rxWikiInclSuffix1': '\%(|[^\\\}]\{-}\)\{-}}}',
            \    'w32_dir_enc': '',
            \    'schemes_web': 'http\|https\|file\|ftp\|gopher\|telnet\|nntp\|ldap\|rsync\|imap\|pop\|irc\|ircs\|cvs\|svn\|svn+ssh\|git\|ssh\|fish\|sftp\|thunderlink\|message',
            \    'WikiInclTemplate1': '{{__LinkUrl__}}',
            \    'auto_chdir': 0,
            \    'html_header_numbering': 0,
            \    'filetypes': [],
            \    'rxWikiInclPrefix': '{{',
            \    'tags_header_level': 1,
            \    'rxWikiIncl': '{{[^\\\}]\{-}\%(|[^\\\}]\{-}\)\{-}}}',
            \    'table_auto_fmt': 1,
            \    'schemes_any': 'mailto\|matrix\|news\|xmpp\|sip\|sips\|doi\|urn\|tel\|data',
            \    'create_link': 1,
            \    'rx_wikilink_suffix': '\]\]',
            \    'listsyms': ' .oOX',
            \    'rxWeblinkUrl': '\%(\%(\%(http\|https\|file\|ftp\|gopher\|telnet\|nntp\|ldap\|rsync\|imap\|pop\|irc\|ircs\|cvs\|svn\|svn+ssh\|git\|ssh\|fish\|sftp\|thunderlink\|message\):\%(//\)\)\|\%(mailto\|matrix\|news\|xmpp\|sip\|sips\|doi\|urn\|tel\|data\):\)\S\{-1,}\%(([^ \t()]*)\)\=',
            \    'table_mappings': 1,
            \    'rx_wikilink_separator': '|',
            \    'CJK_length': 0,
            \    'key_mappings': {
            \        'headers': 1,
            \        'table_format': 1,
            \        'lists': 1,
            \        'global': 1,
            \        'lists_return': 1,
            \        'links': 1,
            \        'all_maps': 1,
            \        'text_objs': 1,
            \        'mouse': 0,
            \        'table_mappings': 1,
            \        'html': 1
            \    },
            \    'WikiInclTemplate2': '{{__LinkUrl__|__LinkDescription__}}',
            \    'links_header': 'Generated Links',
            \    'hl_headers': 0,
            \    'valid_html_tags': 'b,i,s,u,sub,sup,kbd,br,hr,div,center,strong,em',
            \    'listsym_rejected': '-',
            \    'rxWikiInclMatchUrl': '{{\zs[^\\\}]\{-}\ze\%(|[^\\\}]\{-}\)\{-}}}',
            \    'markdown_header_style': 1,
            \    'rxSchemes': '\%(wiki\d\+\|diary\|local\|http\|https\|file\|ftp\|gopher\|telnet\|nntp\|ldap\|rsync\|imap\|pop\|irc\|ircs\|cvs\|svn\|svn+ssh\|git\|ssh\|fish\|sftp\|thunderlink\|message\|mailto\|matrix\|news\|xmpp\|sip\|sips\|doi\|urn\|tel\|data\)',
            \    'map_prefix': '<Leader>w',
            \    'hcolor_guifg_light': ['#aa5858', '#507030', '#1030a0', '#103040', '#505050', '#636363'],
            \    'emoji_enable': 3,
            \    'links_header_level': 1,
            \    'rxWikiInclArgs': '\%(|[^\\\}]\{-}\)\{-}',
            \    'use_calendar': 1,
            \    'user_htmls': '',
            \    'conceal_onechar_markers': 1,
            \    'listing_hl_command': 'pygmentize -f html',
            \    'dir_link': '',
            \    'listing_hl': 0,
            \    'menu': 'Vimwiki',
            \    'conceal_pre': 0,
            \    'rx_wikilink_prefix': '\[\[',
            \    'rxWikiInclPrefix1': '{{[^\\\}]\{-}|',
            \    'hcolor_guifg_dark': ['#e08090', '#80e090', '#6090e0', '#c0c0f0', '#e0e0f0', '#f0f0f0'],
            \    'url_maxsave': 15,
            \    'rxWikiLinkDescr': '[^\\\]]\{-}',
            \    'folding': ''
            \ }

let g:vimwiki_ext2syntax = {}

let g:vimwiki_list = []
function! bootstrap#vimwiki#setup() abort 
    let g:vimwiki_list = get(g:, 'vimwiki_list', [])
    let vimwiki = {
                \ 'path': '~/.SpaceVim.d/vimwiki',
                \ 'path_html': '~/.SpaceVim.d/vimwiki/html/'
                \ }
    call add(g:vimwiki_list, vimwiki)
    " call vimwiki#vars#init()
    return g:vimwiki_list
endfunction

